-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust: Basic support for future content and .await
#18685
Conversation
92b4a63
to
6e99087
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab. Learn more
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM.
@@ -203,6 +203,16 @@ fn test_apply_flow_through() { | |||
sink(t); // $ hasValueFlow=33 | |||
} | |||
|
|||
async fn get_async_number(a: i64) -> i64 { | |||
37 | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have a comment that this function has a summary model with taint through it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. Done :)
928f72d
to
efb5b9b
Compare
I had forgotten to update the |
This PR takes a small step towards handling async Rust:
Future
trait..await
reads from the future content.Notably this doesn't handle non-modeled calls to
async
functions.